package com.qf.mapper;

import com.qf.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author 千锋健哥
 */
public interface UserMapper {

    public List<User> findAll();

    public User findOne(@Param("aaa") Integer id);

    public List<User> findByUserName(@Param("name") String name);

    public void insertUser(@Param("user") User user);

    public void updateUserById(@Param("user") User user);

    public void deleteById(@Param("id") Integer id);

    public List<User> findByNameAndSex(@Param("name") String name, @Param("sex") String sex);

    public List<User> findByNameAndSexMap(Map<String, String> map);

    public List<User> findByNameAndSexAndPwd(@Param("user") User user);

    public List<User> findByIds(@Param("ids") List<Integer> ids);

    public List<User> findAllTemp();

    public List<User> findUserAndDesc();
}
